package com.yz.xyt.service;

import com.github.pagehelper.PageInfo;
import com.yz.xyt.domain.Department;
import com.yz.xyt.domain.vo.DepartmentVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IDepartmentService {
    int deleteByPrimaryKey(Integer sid);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer sid);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    int updateByDeptNumberSelective(Department record);

    void syncAddDepartment(List<Department> list);

    Department selectByDeptNumber(String deptNumber);

    void syncUpdateDepartment(List<Department> list);

    void syncDeleteDepartment(List<Department> list);

    String findDeptNumberByName(String deptName);

    PageInfo findDepartmentForPage(DepartmentVo departmentVo);

    List<Department> findDepartmentList(DepartmentVo departmentVo);
}
